package com.gw.vip.server.service.dao_service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gw.vip.server.dao.TmpTransLockMapper;
import com.gw.vip.server.po.TmpTransLock;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.List;

/**
 * @author GW
 * @description
 * @since 2022-05-07
 */
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class TmpTransLockService extends ServiceImpl<TmpTransLockMapper, TmpTransLock> {
    private final TmpTransLockMapper mapper;

    public void truncate() {
        this.mapper.truncate();
    }

    public Integer initData(LocalDate clearDate) {
        return this.mapper.initData(clearDate);
    }

    public void initDataFromHis(LocalDate clearDate) {
        this.mapper.initDataFromHis(clearDate);
    }

    public List<TmpTransLock> listByClearDate(LocalDate clearDate) {
        return this.mapper.listByClearDate(clearDate);
    }
}
